#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>

namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();

private slots:
    void on_PB_la_clicked();

    void on_PB_new_clicked();

private:
    Ui::Widget *ui;

    double dx[100],dy[100];
    double dtable[100][100];
    int num;
    double tmpx;

    void read();

    double get_la_ln(int x,double val);
    double lagrange();
    double newton(int);
    void get_table();


};

#endif // WIDGET_H
